package com.weixing.mall.provider.model.enums;

import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * 订单状态
 *
 * @author siashan
 * @since  v1.0
 */

@NoArgsConstructor
public enum OrderStateEnum implements IBaseEnum<Integer> {
    WAIT_PAY(1, "待付款"),
    CANCELD(4, "已取消"),
    HAS_PAY(7, "已付款/待审核"),
    AUDITING(10, "审核中"),
    AUDIT_SUCCESS(13, "审核完成/待封单"),
    SEALED(16, "已封单"),
    //封单不成功的订单
    PROBLEM(17, "问题订单"),
    WAIT_SHIP(19, "待发货"),
    SHIPED(22, "已发货"),
    FINISHED(25, "已完成"),
    AFTER_SALE(28, "售后中"),
    REJECT(30,"已拒绝")
    ;

    private int value;
    private String desp;

    OrderStateEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
